.carousel {
  width: 100%;
  /* min-width: auto; */
  height: 780px;
  position: relative;
  overflow: hidden;
}

.Earth-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.Earth-image img {
  width: 100%;
    height: 100%;   
    min-height: 800px;
    animation: aniScaleBan 10s linear forwards;
    transform: scale(1.1); /* 初始放大 110% */
    animation: zoomIn 8s ease-out forwards;
    transform-origin: center center; /* 确保从中心开始缩放 */
}
@keyframes zoomIn {
  from {
      transform: scale(1);
  }
  to {
      transform: scale(1.1);
      opacity: 1;
  }
}
.text-overlay {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-family: Arial, sans-serif;
}

.animated-text {
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 15px 0;
}

.line1 {
  animation: appear 0.5s ease-out forwards;
  font-size: 3.5em;
  animation-delay: 0.5s;
}

.line2 {
  animation: appear 0.5s ease-out forwards;
  font-size: 2.5em;
  animation-delay: 1.5s;
}

.line3 {
  animation: appear 0.5s ease-out forwards;
  font-size: 1.5em;
  animation-delay: 2.5s;
}

@keyframes appear {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.animated-text span {
  display: inline-block;
  opacity: 0;
}

/* 如果需要真正的逐字效果 */
/* 需要为每个字符包裹span标签并通过JS添加动画延迟 */
.two{
    width: 100%;
    height: 900px;
    margin-top: -6px;
    position: relative;
    overflow: hidden;
    
}
.two-one {
    width: 100%;
    height: 100%;
    position: relative;
}
.one {
    width: 100%;
    height: 100%;
}
.two {
    position: relative;
    overflow: hidden;
    min-height: 600px; /* 根据实际内容调整 */
  }
  
  .two-one {
    position: relative;
    height: 100%;
  }
  
  .one {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
  }
  
  /* 新增内容容器 */
  .content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
    padding: 80px;
    box-sizing: border-box;
    flex-wrap: wrap;
  }
  
  /* 左侧图片 */
  .left-image {
    /* flex: 0 0 40%; */
    position: relative; /* 新增 */
    width: 600px;
    height: 500px;
    margin-right: 5%;
    transform: translateX(-20%);
    opacity: 0;
    transition: all 1s ease;
    margin-top: -160px;
  }
  .image-caption {
    /* position: absolute; */
  
    z-index: 2;

    color: #F2F7FD;
    text-stroke: 1px #064CA1;
    -webkit-text-stroke: 1px #064CA1;
    font-size: 66px;

    /* background: linear-gradient(to right, rgba(0,90,171,0.8), rgba(50,190,255,0.5)); */
    margin-top: -60px;
    margin-bottom: 80px;
    width: 800px;
    &::after {
      content: '';
      display: block;
      width: 100px;
      height: 3px;
      background: #00BFFF;
      margin-top: 10px;
      transform: skewX(-30deg);
      }
}




  .left-image img {
    width: 100%;
    height: 100%;
  }
  
  .right-content h2 {
    margin: 170px auto 0px;  /* 上边距负值实现整体上移 */
    
    transform: translateY(-10%); /* 百分比调整 */
    text-align: center;
    font-size: 40px;
    /* line-height: 54px; */
    display: inline-block;
    font-weight: bold;
    background-image: -webkit-gradient(linear, left top, right top, from(#32beff), to(#005aab));
    background-image: -webkit-linear-gradient(left, #32beff 0%, #005aab 100%);
    background-image: -moz-linear-gradient(left, #32beff 0%, #005aab 100%);
    background-image: linear-gradient(to right, #32beff 0%, #005aab 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    }
    
  .gradient-text {
    text-align:left ;
    font-size: 18px;
    margin-top: 60px;
    transform: translateY(-15%);
  }
  
  /* 右侧内容 */
  .right-content {
   height: 700px;
    width: 660px;
    margin-top: 20px;
    margin-left: 30px;
    color: rgb(0, 0, 0);
    transform: translateX(20%);
    opacity: 0;
    transition: all 1s ease 0.2s;
  }
  
  /* 滚动激活动画 */
  .active .left-image,
  .active .right-content {
    transform: translateX(0);
    opacity: 1;
  }
  
  /* 原有滑动图片调整 */

  /* 基础样式 */
  .number-counter {
    /* padding: 30px 20px; */
    font-family: Arial, sans-serif;
}
.counter-list{
  display: flex;
  justify-content: space-around;
  margin-top: -30px;
}
.counter-item {
    margin: 22px;
    margin-top: 40px;
    display: inline-block;
    text-align: center;
}
.num-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.prefix {
  font-size: 18px;
  color: #005aab;
  font-weight: bold;
  white-space: nowrap;
}

.suffix {
  font-size: 18px;
  color: #c30d23;
  font-weight: bold;
  margin-left: 4px;
}
.num {
    font-size: 46px;
    color: #c30d23;
    font-weight: 600;
    line-height: 1;
}

.unit {
    font-size: 22px;
    margin-left: 10px;
    color: #333;
}

.tit {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

/* 在Warehousing services.css中添加 */
.effect-container {
  position: absolute;
  bottom: 100px;
  right: 60px;
  width: 800px;
  z-index: 999;
  /* outline: 1px solid red;  */
}

.slide-in-image {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-out;
  will-change: transform;
  /* 移除原有定位属性 */
  position: static !important; 
}
.research-container {
  position: absolute;
  bottom: 100px;
  right: 60px;
  width: 800px;
  z-index: 999;
}
.main-container {
  font-family: Arial, sans-serif;
  background-color: #eff5fd;
  min-height: 800px;
}
.container {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 40px 20px;
  height: 800px;
  position: sticky;
  top: 0;
  box-sizing: border-box;
}
.left-section {
  width: 50%;
  position: relative;
}

.left-section-text {
  color: #4a86cb;
  font-size: 60px;
  line-height: 1;
  margin-bottom: 20px;
  margin-top: 36px;
}
.chinese-title {
  color: #003b29;
  font-size: 3.5rem;
  /* margin-bottom: 40px; */
  
}

.wood-image {
  position: absolute !important; 
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  
  /* 自定义尺寸 */
  width: 800px;  /* 通过这个百分比控制宽度 */
  height: 600px; /* 通过这个值控制最大高度 */

  
  /* 保持图片比例 */
  object-fit: cover;
  
  /* 确保显示层级 */
  z-index: -2;
}
.right-section {
  width: 40%;
/*   
  margin-right: -40px; */

  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-block {
  height: 300px;
  border-radius: 10px;
  padding: 30px;
  color: white;
  margin-bottom: 20px;
  transition: transform 1.2s ease-out, opacity 1.2s ease-out;
  opacity: 0;
  transform: translateY(350px);
  will-change: transform, opacity;
  position: absolute;
  width: calc(100% - 60px);
  top: calc(30% - 150px);
}

.block-1 { background-color: #3f70c4; z-index: 4; }
.block-2 { background-color: #0e2b53; z-index: 3; }
.block-3 { background-color: #3f70c4; z-index: 2; }
.block-4 { background-color: #0e2b53; z-index: 1; }

.block-number {
  text-align: right;
  font-size: 1.5rem;
  font-weight: bold;
}

.block-title {
  margin-top: -35px;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.block-text {
  margin-top: 47px;
  font-size: 1rem;
}

.spacer {
  height: 600vh; /* Increased scrollable space for longer animation distance */
}
/* 在about.css中添加 */
:root {
  --nav-height: 80px; /* 根据实际导航栏高度修改 */
}

/* 现代浏览器方案 */
:target {
  scroll-margin-top: var(--nav-height);
}

/* 传统浏览器兼容方案 */
:target::before {
  content: "";
  display: block;
  height: var(--nav-height);
  margin-top: calc(-1 * var(--nav-height));
  visibility: hidden;
}

/* 响应式适配 */
@media (max-width: 768px) {
  :root {
      --nav-height: 60px;
  }
}

/* 响应式设计优化 */
/* 大屏幕 (1200px - 1680px) */
@media (min-width: 1200px) and (max-width: 1680px) {
  .carousel {
    height: 100vh;
    width: 100%;
  }

  .text-overlay {
    left: 8%;
  }

  .line1 {
    font-size: 3em;
  }

  .line2 {
    font-size: 2em;
  }

  .content-overlay {
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
  }

  .left-image {
    width: 500px;
    height: 420px;
    margin-top: -130px;
  }

  .image-caption {
    font-size: 52px;
    width: 600px;
    margin-left: 80px;
  }
  .left-image img {
    width: 600px;
    height: 500px;  
    margin-left: 80px;
  }
  .right-content {
    width: 540px;
    margin-top: 110px;
    margin-left: 139px
  }
  .number-counter {
    width: 600px;
    margin-top: 60px;
    margin-left: -30px;
  }
  .counter-item {
    margin: 0 10px;
  }
  .right-content h2 {
    font-size: 34px;
    margin-top: 150px;
  }

  .gradient-text {
    font-size: 16px;
    margin-top: 45px;
  }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .carousel {
    height: 100vh;
  }
  .line1 {
    font-size: 3em;
  }
  .block-title {
    font-size: 1.5rem;
  }
  .block-text {
    margin-top: 38px;
    font-size: 0.9rem;
  }
  .line2 {
    font-size: 2em;
  }
  .content-overlay {
    padding: 40px;
  }
  .left-section-text {
    font-size: 46px;
  }
  .counter-list{
    margin-left: -40px;
  }
  .chinese-title {
    font-size: 2.5rem;
  }
  .left-image {
    width: 450px;
    height: 380px;
    /* margin-top: -110px; */
  }

  .image-caption {
    font-size: 46px;
    width: 550px;
  }

  .right-content {
    width: 480px;
    margin-top: 30px;
  }

  .right-content h2 {
    font-size: 30px;
    margin-top: 130px;
  }

  .gradient-text {
    font-size: 15px;
    margin-top: 35px;
  }

  .num {
    font-size: 38px;
  }

  .prefix, .suffix {
    font-size: 16px;
  }
}

/* 平板横屏 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .carousel {
    height: 100vh;
  }
  .line1 {
    font-size: 2.5em;
  }
  .line2 {
    font-size: 2em;
  }
  
  .left-section-text {
    font-size: 40px;
  }
  .block-text {
    margin-top: 20px;
  }
  .block-text {
    font-size: 0.9rem;
  }
  .chinese-title {
    font-size: 2.5rem;
  }
  .content-overlay {
    flex-direction: column;
    padding: 30px;
    align-items: center;
  }

  .left-image {
    width: 100%;
    max-width: 450px;
    height: 320px;
    margin: 0 auto;
    transform: translateX(0);
    margin-top: -70px;
  }

  .image-caption {
    font-size: 38px;
    width: 100%;
    text-align: center;
    margin-top: 65px;
  }
  .number-counter {
    margin-top: 30px;
  }
  .right-content {
    width: 100%;
    max-width: 700px;
    margin: 225px auto 0;
    transform: translateX(0);
    height: auto;
  }

  .right-content h2 {
    margin-top: 50px;
    font-size: 26px;
    text-align: center;
  }

  .gradient-text {
    font-size: 14px;
    margin-top: 25px;
    text-align: left;
  }

  .counter-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
  }

  .counter-item {
    width: auto;
    margin: 8px 15px;
  }
}

/* 平板竖屏 (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .carousel {
    height: 80vh;
  }

  .text-overlay {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
  }

  .line1 {
    font-size: 26px;
  }

  .line2 {
    font-size: 20px;
  }
  
  .left-image {
    width: 500px;
    height: 300px;
    margin-top: -50px;
  }
  .left-image img {
    width: 100%;
    height: 100%;
  }
  .right-content {
    margin-top: 100px;
    margin-left: 0px;
  }
  .image-caption {
    font-size: 30px;
    margin-top: -5px;
    margin-bottom: 25px;
  }
  .counter-list {
    margin-top: 0px;
  }
  .right-content h2 {
    font-size: 22px;
    margin-top: 35px;
    text-align: center;
    display: block;
  }
  /* .container {
    position: relative;
  } */
  .gradient-text {
    font-size: 13px;
    line-height: 1.5;
  }
  /* .container {
    display: block;
  } */
  .wood-image {
    /* position: fixed !important; */
    width: 100%;
  }
  .counter-item {
    width: 100%;
    margin: 12px 0;
  }

  .num {
    font-size: 28px;
  }

  .left-section-text {
    font-size: 34px;
  }
  .prefix{
    font-size: 16px;
  }
  .chinese-title {
    font-size: 2rem;
  }

  .block-title {
    font-size: 1.5rem;
  }

  .block-text {
    font-size: 0.75rem;
  }

  .main-container {
    padding: 20px;
  }

  .container {
    flex-direction: column;
    height: auto;
    padding: 0;
  }

  .left-section {
    width: 100%;
    margin-bottom: 30px;
  }

  .left-section-text {
    font-size: 34px;
    margin-bottom: 15px;
  }

  .chinese-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .wood-image {
    width: 100%;
    height: auto;
    position: relative !important;
    transform: none;
    left: 0;
    margin: 0;
  }

  .right-section {
    width: 100%;
    margin: 30px 0 0 0;
    padding: 0 15px;
  }

  .content-block {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    transform: none;
    opacity: 1;
    height: auto;
    min-height: 200px;
  }

  /* 调整平板竖屏下的显示顺序 */
  .block-4 { order: 1; } /* 入库验收 */
  .block-3 { order: 2; } /* 环境把控 */
  .block-2 { order: 3; } /* 出库配送 */
  .block-1 { order: 4; } /* 综合服务 */

  .right-section {
    display: flex;
    flex-direction: column;
  }

  .block-title {
    font-size: 1.5rem;
    margin-top: -35px;
  }

  .block-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 15px;
  }

  .block-number {
    font-size: 1.3rem;
  }

  .spacer {
    height: 0 !important;
  }
}

/* 手机 (575px以下) */
@media (max-width: 575px) {
  .carousel {
    height: 60vh;
  }
  
  .line1 {
    font-size: 22px;
  }
  .suffix {
    font-size: 14px;
    /* width: 30px; */
  }
  .line2 {
    font-size: 18px;
  }
  .right-content {
    margin-top: 140px;
    width: 400px;
    margin-left: 0px;
  }
  .counter-list {
    width: 400px;
    margin-left: -60px;
  }
  .left-image {
    width: 400px  ;
    height: 300px;
    margin-top: -30px;
  }
  .left-image img {
    width: 100%;
    height: 100%;
    margin-left: -50px;
  }

  .image-caption {
    font-size: 26px;
    margin-top: -20px;
  }

  .right-content h2 {
    font-size: 20px;
    margin-top: 25px;
  }

  .gradient-text {
    font-size: 12px;
    line-height: 1.4;
    margin-left: -30px
  }

  .num {
    font-size: 25px;
  }

  .prefix, .suffix {
    font-size: 10px;
  }

  .left-section-text {
    font-size: 30px;
  }

  .chinese-title {
    font-size: 1.8rem;
  }

  .block-title {
    font-size: 1.3rem;
  }

  .block-text {
    font-size: 0.85rem;
  }

  /* main-container容器内的布局 */
  .main-container {
    padding: 20px;
  }

  .container {
    flex-direction: column;
    height: auto;
    padding: 0;
  }

  .left-section {
    width: 100%;
    margin-bottom: 30px;
  }

  .left-section-text {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .chinese-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .wood-image {
    width: 100%;
    height: auto;
    position: relative !important;
    transform: none;
    left: 0;
    margin: 0;
  }

  .right-section {
    width: 100%;
    margin: 30px 0 0 0;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
  }

  .content-block {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    transform: none;
    opacity: 1;
    height: auto;
    min-height: 200px;
  }

  /* 调整手机端的显示顺序，与平板竖屏保持一致 */
  .block-4 { order: 1; } /* 入库验收 */
  .block-3 { order: 2; } /* 环境把控 */
  .block-2 { order: 3; } /* 出库配送 */
  .block-1 { order: 4; } /* 综合服务 */

  .block-title {
    font-size: 1.3rem;
    margin-top: -35px;
  }

  .block-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 15px;
  }
  .spacer {
    height: 0 !important;
  }
  .block-number {
    font-size: 1.2rem;
  }
}

/* 添加动画效果保留 */
@media (prefers-reduced-motion: no-preference) {
  .content-block {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  }

  .left-image, .right-content {
    transition: transform 1s ease, opacity 1s ease;
  }

  .animated-text {
    animation: appear 0.5s ease-out forwards;
  }
}

/* 优化滚动动画 */
@media (min-width: 992px) {
  .content-block {
    position: absolute;
    width: calc(100% - 60px);
    top: calc(30% - 150px);
    transform: translateY(350px);
    opacity: 0;
  }

  .active .content-block {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 1200px) and (max-width: 1342px) {
  .content-overlay {
    padding: 30px;
    gap: 20px;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
  }
  .left-image {
    width: 520px;
    height: 460px;
    /* margin-top: -80px; */
    margin-right: 20px;
  }
  .image-caption {
    font-size: 52px;
    /* width: 350px; */
    margin-left: 20px;
    margin-bottom: 30px;
  }
  .left-image img {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    margin-left: 20px;
  }
  .two {
    height: 800px;
  }
  .right-content {
    width: 480px;
    height: 450px;
    margin-top: 0px;
    margin-left: 60px;
  }
  .right-content h2 {
    font-size: 38px;
    margin-top: 0px;
    margin-bottom: 10px;
  }
  .gradient-text {
    font-size: 15px;
    margin-top: 38px;
    line-height: 1.5;
  }
  .number-counter {
    width: 500px;
    margin-top: 20px;
    margin-left: -10px;
  }
  .counter-list {
    gap: 10px;
  }
  .counter-item {
    margin: 0 5px;
  }
  .left-section-text {
    font-size: 50px;
  }
  .chinese-title {
    font-size: 40px;
  }
  .num {
    font-size: 38px;
  }
  .prefix, .suffix {
    font-size: 18px;
  }
}

@media (min-width: 991px) and (max-width: 1090px) {
  .content-overlay {
    padding: 18px;
    gap: 12px;
    flex-direction: row !important;
    margin-top: 40px;
    align-items: center;
    flex-wrap: nowrap;
  }
  .two{
    height: 700px;
  }
  .left-image {
    width: 520px;
    height: 420px;
    margin-top: -30px;
    margin-right: 10px;
  }
  .image-caption {
    font-size: 38px;
    /* width: 180px; */
    margin-left: 8px;
    margin-bottom: 10px;
  }
  .left-image img {
    width: 100%;
    height: 100%;
    margin-left: 8px;
  }
  .right-content {
    width: 460px;
    height: 420px;
    margin-top: 10px;
    margin-left: 10px;
  }
  .right-content h2 {
    font-size: 32px;
    margin-top: 18px;
    margin-bottom: 6px;
  }
  .gradient-text {
    font-size: 16px;
    margin-top: 40px;
    line-height: 1.4;
  }
  .number-counter {
    /* width: 220px; */
    margin-top: 18px;
    margin-left: 0;
  }
  .counter-list {
    gap: 0px;
    margin-left: 0px;
  }
  .counter-item {
    margin: 0 2px;
  }
  .num {
    font-size: 24px;
  }
  .prefix, .suffix {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .content-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
  }
  .content-block.visible {
    opacity: 1;
    transform: translateY(0);
  }
}